package com.olf.interpreter.tests;

import static org.junit.Assert.fail;

import java.util.Map;

import org.junit.Test;

import com.olf.interpreter.execution.ConfigReader;
import com.olf.openjvs.OException;

public class ReadXmlTest {

	@Test
	public void testParseConfig() {
		ConfigReader obj = new ConfigReader();
		Map<String, String> ret = null;
		
		try {
			ret = obj.parseConfig();
		} catch (OException e) {
			fail("Exception caught...");
		}
		
		assert(ret.size() > 0);
	}

	@Test
	public void testParseConfigString() {
		ConfigReader obj = new ConfigReader();
		Map<String, String> ret = null;
		
		try {
			ret = obj.parseConfig(0);
		} catch (OException e) {
			fail("Exception caught...");
		}
		
		assert(ret.size() > 0);
	}

}
